package com.hongxin.doc.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Schema(description = "创建文档需要的用户信息和文档信息")
public class UserRequest {
    @Schema(description = "用户的唯一标识", example = "1234567890")
    @NotNull(message = "请提供用户ID")
    @Min(value = 1, message = "用户ID不能小于1")
    @Max(value = 999999999, message = "用户ID不能大于999999999")
    private Integer id;

    @Schema(description = "用户的名称", example = "hongxin", maxLength = 16)
    @NotBlank(message = "请提供用户名称")
    private String name;

    private String docType;

    private String docKey;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }

    public String getDocKey() {
        return docKey;
    }

    public void setDocKey(String docKey) {
        this.docKey = docKey;
    }


}
